{{if payid!=0}}
<header>
	<img src="../../static/img/gas/payS.png"/>
	<p>订单号：<span class="order_ids">{{payid}}</span></p>
</header>
{{/if}}
<div class="content">
	<div class="content_border">
		<div class="goods_detail">
			{{if status==1}}
			<h6>已成功购买开奖宝店券：</h6>
			{{else if status==0}}
			<h6>未支付的开奖宝店券：</h6>
			<p class="center">剩余支付时间：<span id="daojishi">{{lasttimestr}}</span></p>
			{{else if status==-1}}
			<h6>已取消开奖宝店券：</h6>
			{{else if status==2}}
			<h6>已使用开奖宝店券：</h6>
			{{else if status==3}}
			<h6>已转让开奖宝店券：</h6>
			{{/if}}
			<div class="sums">
				<img src="{{lottery_path}}" alt="">
				<div class="sumss">
					<p class="Names">{{title}}</p>
					<span class="Nums">数量×{{amount}}</span>
				</div>
			</div>
			<div class="detail_lists">
				<h2>使用此券的开奖宝店同时获如下返现：</h2>
				<div class="cashback1">
					<h6>1.返现金给到开奖宝店消费的用户</h6>
					{{each levels as lev}}
						{{if $index==0}}
						<p><span>{{lev.lcount*amount}}</span>个{{lev.name}}由此商户产生，奖金<span>￥{{lev.money*lev.lcount*amount | money}}元</span>由平台送出。</p>
						{{else}}
						<p><span>{{lev.lcount*amount}}</span>个{{lev.name}}：<span>￥{{lev.money*lev.lcount*amount  | money}}</span></p>
						{{/if}}
					{{/each}}
				</div>
				<div class="cashback2">
					<h6>2.返现金给开奖宝店做推广：</h6>
					<p>现金<span class="cashs">￥{{spreadMoney*amount  | money}}元</span>由平台打入宝店推广账户，可随时在合作的高流量推广平台中使用。</p>
				</div>
			</div>
		</div>
		{{if status==0}}
			<div class="buttons center">
				<a href="javascript:void(0)" class="btn" id="btn_pay">确认支付</a>
			</div>
		{{/if}}
		{{if status==1}}
		<img style="width:100%;margin:-1rem 0;" src="../../static/img/gas/gray.png" alt="">
		<div class="spread_method">
			<h2>使用开奖宝店券</h2>
			<div class="searchs">
				<input class="searchStore" type="text" id="searchStore" placeholder="请查找要推广的宝店">
				<div class="Search">
					<img src="../../static/img/gas/search2.png" alt="">
				</div>
				<div class="store_lists" id="store_lists"></div>
			</div>
			<div class="sel_datas">
				<div class="title">
					<p></p>
					<p>选择一起赚投放期数（单选）</p>
				</div>
				<div class="sel_data" id="actionlist">
				</div>
			</div>
			<button class="submits">提交</button>
		</div>
		{{/if}}
	</div>
</div>
{{if status==1}}
<footer>
	<h5 class="no_use" onclick="goback(-1);">暂不使用</h5>
	<p>（稍后到APP--宝店推广站中查看使用）</p>
</footer>
{{/if}}	
